home *** CD-ROM | disk | FTP | other *** search
/ Champak 86 / (Vol 86) My Disc.iso / Games / pet_1112.swf / scripts / DefineSprite_558 / frame_1 / DoAction.as
Text File  |  2009-04-14  |  3KB  |  106 lines

  1. function resetButtons()
  2. {
  3.    caurina.transitions.Tweener.addTween(doneBtn_mc,{_alpha:0,time:0.5,delay:0.9,onComplete:function()
  4.    {
  5.       this._visible = false;
  6.    }});
  7.    caurina.transitions.Tweener.addTween(smallCorner_mc,{_y:457,time:0.5,delay:0.6});
  8.    caurina.transitions.Tweener.addTween(largeCorner_mc,{_y:464,time:0.5,transition:"easeInSine",delay:0.3});
  9.    caurina.transitions.Tweener.addTween(playAgainBtn_mc,{_alpha:0,time:0.5,delay:0.15,onComplete:function()
  10.    {
  11.       this._visible = false;
  12.    }});
  13.    caurina.transitions.Tweener.addTween(printBtn_mc,{_alpha:0,time:0.5,onComplete:function()
  14.    {
  15.       this._visible = false;
  16.    }});
  17.    doneBtn_mc.swapDepths(getNextHighestDepth());
  18.    started = false;
  19. }
  20. function showDoneBtn()
  21. {
  22.    setTimeout(function()
  23.    {
  24.       doneBtn_mc.gotoAndPlay(2);
  25.    }
  26.    ,600);
  27.    caurina.transitions.Tweener.addTween(doneBtn_mc,{_alpha:100,time:0.5,delay:0.7});
  28.    caurina.transitions.Tweener.addTween(smallCorner_mc,{_y:400,time:0.5,transition:"easeOutBounce",delay:0.5});
  29.    doneBtn_mc._visible = true;
  30. }
  31. stop();
  32. var started = false;
  33. doneBtn_mc.onClick = function()
  34. {
  35.    clearTimeout(gameTimeouts.promtTimeout0);
  36.    eventCover_mc._visible = true;
  37.    doors_mc.gotoAndPlay("close");
  38.    printBtn_mc.swapDepths(this._parent.getNextHighestDepth());
  39.    playAgainBtn_mc.gotoAndStop(1);
  40.    caurina.transitions.Tweener.addTween(doneBtn_mc,{_alpha:0,time:1,onComplete:function()
  41.    {
  42.       this._visible = false;
  43.    }});
  44.    caurina.transitions.Tweener.addTween(smallCorner_mc,{_y:456,time:0.6,transition:"easeInSine",delay:0.3});
  45.    caurina.transitions.Tweener.addTween(largeCorner_mc,{_y:400,time:0.6,transition:"easeOutBounce",delay:0.6});
  46.    caurina.transitions.Tweener.addTween(playAgainBtn_mc,{_alpha:100,time:0.3,delay:1.05});
  47.    caurina.transitions.Tweener.addTween(printBtn_mc,{_alpha:100,time:0.5,delay:1});
  48.    playAgainBtn_mc._visible = true;
  49.    printBtn_mc._visible = true;
  50.    setTimeout(function()
  51.    {
  52.       playAgainBtn_mc.gotoAndPlay(2);
  53.    }
  54.    ,800);
  55. };
  56. printBtn_mc.onPress = function()
  57. {
  58.    this.gotoAndStop(2);
  59. };
  60. printBtn_mc.onRelease = function()
  61. {
  62.    this.gotoAndStop(1);
  63.    getURL("printasbitmap:",_root.printBlue_mc);
  64. };
  65. playAgainBtn_mc.onClick = function()
  66. {
  67.    joePrompt();
  68.    eventCover_mc._visible = false;
  69.    setTimeout(function()
  70.    {
  71.       doors_mc.gotoAndPlay("open");
  72.    }
  73.    ,700);
  74.    _root.printBlue_mc.blue.removeClothes("all");
  75.    blue.removeClothes("all");
  76.    resetButtons();
  77.    for(var _loc2_ in ezClick2Drags)
  78.    {
  79.       snapBack(ezClick2Drags[_loc2_]);
  80.    }
  81. };
  82. playAgainBtn_mc._visible = false;
  83. printBtn_mc._visible = false;
  84. playAgainBtn_mc.onHover = function()
  85. {
  86.    sounds.stopStound("all");
  87.    sounds.JOE_BMMDU_030.start();
  88. };
  89. doneBtn_mc.onHover = function()
  90. {
  91.    sounds.stopStound("all");
  92.    sounds.done.start();
  93. };
  94. printBtn_mc.onRollOver = function()
  95. {
  96.    sounds.stopStound("all");
  97.    sounds.JOE_BMMDU_026.start();
  98. };
  99. eventCover_mc.onRelease = function()
  100. {
  101.    0;
  102.    undefined;
  103. };
  104. eventCover_mc.useHandCursor = false;
  105. eventCover_mc._visible = false;
  106.